package com.bw.cart.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bw.common.core.annotation.Excel;
import com.bw.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 购物车对象 pms_cart
 * 
 * @author bw
 * @date 2024-12-27
 */
public class PmsCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** skuId */
    @Excel(name = "skuId")
    private Long skuId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String skuTitle;

    /** 商户id */
    @Excel(name = "商户id")
    private Long sellerId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String sellerName;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 是否选中（0-未选中  1-已选中） */
    @Excel(name = "是否选中", readConverterExp = "0=-未选中,1=-已选中")
    private Long checked;

    private BigDecimal price;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setSkuTitle(String skuTitle) 
    {
        this.skuTitle = skuTitle;
    }

    public String getSkuTitle() 
    {
        return skuTitle;
    }
    public void setSellerId(Long sellerId) 
    {
        this.sellerId = sellerId;
    }

    public Long getSellerId() 
    {
        return sellerId;
    }
    public void setSellerName(String sellerName) 
    {
        this.sellerName = sellerName;
    }

    public String getSellerName() 
    {
        return sellerName;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setChecked(Long checked) 
    {
        this.checked = checked;
    }

    public Long getChecked() 
    {
        return checked;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("skuId", getSkuId())
            .append("skuTitle", getSkuTitle())
            .append("sellerId", getSellerId())
            .append("sellerName", getSellerName())
            .append("num", getNum())
            .append("checked", getChecked())
            .toString();
    }
}
